import { createRouter,createWebHashHistory } from 'vue-router'
const router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:'/',
            redirect:'/home'
        },
        {
            path:'/home',
            component:()=>import('../views/home/index.vue')
        },
        {
            path:'/favor',
            component:()=>import('../views/favor/index.vue')
        },
        {
            path:'/order',
            component:()=>import('../views/order/index.vue')
        },
        {
            path:'/message',
            component:()=>import('../views/message/index.vue')
        },
        {
            path:"/city",
            component:()=>import('../views/city/index.vue'),
            meta:{
                ishident:true
            }
        },
        {
            path:"/search",
            component:()=>import("../views/search/index.vue"),
            meta:{
                ishident:true
            }
        },
        {
            path:"/detail/:id",
            component:()=>import("@/components/detail/index.vue"),
            meta:{
                ishident:true
            }
        }
    ]
})
export default router